﻿var Router = ReactRouter.Router; // 由于是html直接引用的库，所以 ReactRouter 是以全局变量
var Route = ReactRouter.Route;
var RouteHandler = ReactRouter.RouteHandler;
var Link = ReactRouter.Link;
var StateMixin = ReactRouter.State;
var Redirect = ReactRouter.Redirect;
var browserHistory = ReactRouter.browserHistory;
var IndexRoute = ReactRouter.IndexRoute;
const Homeindex = Homeindex;
const UserMnt = UserMnt;
const About = React.createClass({ render() { return (<div> <h1>ABOUTtest</h1></div>) } })
ReactDOM.render(
  <Router history={browserHistory}>
     	<Route path="/" component={App}>
         <IndexRoute  component={UserMnt} />
 	      <Route path="about" component={About}>
 	      	<IndexRoute component={About} />
 	      </Route>
              <Route path="user" component={UserMnt}>
 	      	<IndexRoute component={UserMnt} />
              </Route>
 	      <Route path="*" component={App} />
     	</Route>
  </Router>,
document.getElementById('content')
);
